package pri.zxx.learndemo.regularexpression;

import org.junit.jupiter.api.Test;

import java.util.regex.Pattern;

/**
 * @author Twilight
 * @desc
 * @createTime 2020-05-10-10:09
 */
public class RegularTest {

    private String text = "abcdefghijklmnopqrstuvwxyz1234567890-=/.,|';!@#$%^&*^%()_*";

    @Test
    public void simpleDemo() {
        String regular = "\\[A-Za-z0-9_]";
        boolean matches = Pattern.matches(regular, text);
        System.out.println(matches);

    }
}
